#define  _CRT_SECURE_NO_WARNINGS 1		
#include"heap.h"
int main()
{
	int a[] = { 9,8,7,6,5,4,3,2,1 };
	HP hp;
	InitHeap(&hp);
	for (int i = 0; i < sizeof(a) / sizeof(int); i++)
	{
		HeapPush(&hp, a[i]);
	}
	while (!HeapEmpty(&hp))
	{
		printf("%d ", HeapTop(&hp));
		HeapPop(&hp);
	}
	return 0;
}